<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<script type="text/javascript">
<!--
function crearCaja()
{

var caja = document.createElement("input");
caja.setAttribute('type','file');
caja.setAttribute('name','archivo[]');
caja.setAttribute('id','fileField');
document.getElementById("arch").appendChild(caja);
}
</script>
</head>

<body>
<form action="../vista/guardarcarrera.php" method="post" enctype="multipart/form-data" id="carrera">
<div id="final" style="clear:left; position:relative; margin-top:20px;">
<div style="float:left; position:relative">Archivo XML:</div>
<div style="clear:left; position:relative"><textarea name="textXml"  id="textXml" cols="100" rows="20"></textarea></div>
</div>

<div id="arch" style="clear:left; position:relative; margin-top:20px;">  
<div><input type="button" name="button2" id="button2" onclick="crearCaja()" value="Agregar File"/></div> 
<input type="file" name="archivo[]" id="fileField"> 
</div>


<div id="boton" style="clear:left; position:relative; margin-top:20px;">
  
<div style="float:left; position:relative"><input type="submit" name="button" id="button" value="Grabar Carrera" /></div>
</div>
</div>
</form>
</body>